feat: gate bootstrap injection on SUPERPOWERS_SKIP_BOOTSTRAP env var#477
feat: gate bootstrap injection on SUPERPOWERS_SKIP_BOOTSTRAP env var#477
Conversation
Allow headless/CI/autonomous agent sessions to opt out of the using-superpowers bootstrap injection while preserving access to individual skills via the skill tool. Set SUPERPOWERS_SKIP_BOOTSTRAP=1 to skip the system prompt injection.
📝 WalkthroughWalkthroughAdded an early exit to the system prompt transform in the superpowers plugin: when the environment variable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.opencode/plugins/superpowers.js:
- Line 89: The early-return uses a truthy check on
process.env.SUPERPOWERS_SKIP_BOOTSTRAP which treats any non-empty string (e.g.
"0" or "false") as true; change the conditional to an explicit string comparison
(check process.env.SUPERPOWERS_SKIP_BOOTSTRAP === '1') so only setting it to "1"
skips bootstrap — update the conditional around the existing early return in the
superpowers bootstrap block to use that explicit check.
|
Fixed — changed to explicit |
Allow headless/CI/autonomous agent sessions to opt out of the using-superpowers bootstrap injection while preserving access to individual skills via the skill tool.
Set
SUPERPOWERS_SKIP_BOOTSTRAP=1to skip the system prompt injection.This enables:
Summary by CodeRabbit